package cn.kbyue.eurekaclient.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.ResponseEntity;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * test
 *
 * @author xl
 * @date 2020/8/18 20:53
 */
@Api(tags = "测试接口")
@RestController
public class TestController {

    @ApiOperation("打印输入信息")
    @GetMapping("/msg")
    public ResponseEntity method(String message) {
        if (StringUtils.isEmpty(message)) {
            message = "ERROR 没有传入 message！！";
        }
        return ResponseEntity.ok("visit success!! input: " + message);
    }

}
